﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ThongTinTaiKhoan : System.Web.UI.Page
{
    TiemPhongDataContext db = new TiemPhongDataContext();
    protected void Page_Load(object sender, EventArgs e)
    {
        var getNguoiDung = db.NguoiDungs.FirstOrDefault(n => n.NguoiDungId.ToString() == Session["DangNhap"]);
        if(getNguoiDung!=null){
            lbHoten.Text = getNguoiDung.FullName;
            lbMail.Text = getNguoiDung.Email;            
            lbNgaysinh.Text = Convert.ToDateTime(getNguoiDung.BirthDay).ToString("d");
            lbGioitinh.Text = getNguoiDung.Gender;
            lbDienthoai.Text = getNguoiDung.Phone;
            lbDiachi.Text = getNguoiDung.Address;
            
        }
    }
    
}